package com.zsrt.t06;


import org.junit.Test;

public class T06Test {
	
	/**
	 * 实现单例模式
	 * @throws Exception
	 */
	@Test
	public void danli() throws Exception {
		
		T06 t1 = T06.getInstance();
		T06 t2 = T06.getInstance();
		System.err.println(t1);
		System.err.println(t2);
		
		System.out.println(t1==t2);
		
	}

}
